import request from "@/utils/request";

export function login(data) {
  return request({
    method: "POST",
    url: "/sys/login",
    data,
  });
}
//封装获取个人信息的接口  需要在请求拦截器(utils/request.js)里注入的token
export function getUserInfoApi() {
  return request({
    method: "POST",
    url: "/sys/profile",
  });
}

export function logout() {}
